<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>删除结点</title>
</head>
<body>
<div class="container">
  <p class="content">文章</p>
</div>
<script>
  var div = document.querySelector('.container');
  var p = document.querySelector('.content');
  div.removeChild(p);
</script>
</body>
</html>